import './assets/main.css'
//组件库
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

//全局鉴权模块
import '@/access/index.ts'

//持久化插件pinia
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const app = createApp(App)
const pinia = createPinia()
//使用pinia插件
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(Antd)

app.mount('#app')
